from numpy.random import randn, seed
from numpy import array, zeros
import sys
import cPickle as pickle

num_files = int(sys.argv[1])

output_array = zeros(num_files)
for num in range(num_files-1): 
    with open('numbered_output/output'+str(num+1),'r') as phile:
        output_array[num] = pickle.load(phile)

with open('output_arrays/test.pkl','w') as phile:
    pickle.dump(output_array, phile)

